[INFO] cloning repository https://github.com/Ischca/c-compiler-with-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ischca/c-compiler-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e1f3da9cbaead0dd7352c5467a293506d2f69926
[INFO] building Ischca/c-compiler-with-rust against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIschca%2Fc-compiler-with-rust" "/workspace/builds/worker-0/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Ischca/c-compiler-with-rust on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Ischca/c-compiler-with-rust
[INFO] finished tweaking git repo https://github.com/Ischca/c-compiler-with-rust
[INFO] tweaked toml for git repo https://github.com/Ischca/c-compiler-with-rust written to /workspace/builds/worker-0/source/Cargo.toml
[INFO] crate git repo https://github.com/Ischca/c-compiler-with-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 48fb5e208626df5eb5bab1b632a7977addbf35776a7d2a2353b3b6d2d5ff4c9d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "48fb5e208626df5eb5bab1b632a7977addbf35776a7d2a2353b3b6d2d5ff4c9d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "48fb5e208626df5eb5bab1b632a7977addbf35776a7d2a2353b3b6d2d5ff4c9d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "48fb5e208626df5eb5bab1b632a7977addbf35776a7d2a2353b3b6d2d5ff4c9d", kill_on_drop: false }`
[INFO] [stdout] 48fb5e208626df5eb5bab1b632a7977addbf35776a7d2a2353b3b6d2d5ff4c9d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 487d9e67d71c93dab6b09ff94191a9542007eee83b162d12f3b432bbc96901bb
[INFO] running `Command { std: "docker" "start" "-a" "487d9e67d71c93dab6b09ff94191a9542007eee83b162d12f3b432bbc96901bb", kill_on_drop: false }`
[INFO] [stderr]    Compiling c-compiler-with-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: empty character literal
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |     p.chars().fold('', |mut acc: Box<Token>, c:char| {
[INFO] [stdout]    |                     ^ empty character literal
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TK_EOF` in this scope
[INFO] [stdout]    --> src/main.rs:107:13
[INFO] [stdout]     |
[INFO] [stdout] 107 |   new_token(TK_EOF, cur, p);
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this unit variant
[INFO] [stdout]     |
[INFO] [stdout] 1   | use crate::TokenKind::TK_EOF;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `libc::calloc`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use libc::calloc;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::size_of`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::mem::size_of;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::os::raw::c_char`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::os::raw::c_char;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::ptr;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TK_RESERVED` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:15:3
[INFO] [stdout]    |
[INFO] [stdout] 15 |   TK_RESERVED, // 記号
[INFO] [stdout]    |   ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TkReserved`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TK_NUM` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:16:3
[INFO] [stdout]    |
[INFO] [stdout] 16 |   TK_NUM,      // 整数トークン
[INFO] [stdout]    |   ^^^^^^ help: convert the identifier to upper camel case: `TkNum`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TK_EOF` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:17:3
[INFO] [stdout]    |
[INFO] [stdout] 17 |   TK_EOF,      // 入力の終わりを表すトークン
[INFO] [stdout]    |   ^^^^^^ help: convert the identifier to upper camel case: `TkEof`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:98:21
[INFO] [stdout]    |
[INFO] [stdout] 98 |       it if isdigit(c) != 0 => {
[INFO] [stdout]    |                     ^ expected `i32`, found `char`
[INFO] [stdout]    |
[INFO] [stdout] note: return type inferred to be `i32` here
[INFO] [stdout]   --> src/main.rs:95:16
[INFO] [stdout]    |
[INFO] [stdout] 95 |         return acc;
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:99:50
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let token = new_token(TokenKind::TK_NUM, acc, String::from(c));
[INFO] [stdout]    |                                                  ^^^ expected *-ptr, found struct `Box`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected raw pointer `*const Token`
[INFO] [stdout]                    found struct `Box<Token>`
[INFO] [stdout] note: return type inferred to be `*const Token` here
[INFO] [stdout]   --> src/main.rs:95:16
[INFO] [stdout]    |
[INFO] [stdout] 95 |         return acc;
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `match` arms have incompatible types
[INFO] [stdout]    --> src/main.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout] 93  | /     match ptr {
[INFO] [stdout] 94  | |       it if isspace(it as i32) != 0 => {
[INFO] [stdout] 95  | |         return acc;
[INFO] [stdout]     | |         ----------- this is found to be of type `Box<Token>`
[INFO] [stdout] 96  | |       }
[INFO] [stdout] 97  | |       '+' | '-' => return new_token(TokenKind::TK_RESERVED, cur, String::from(c)),
[INFO] [stdout]     | |                    -------------------------------------------------------------- this is found to be of type `Box<Token>`
[INFO] [stdout] ...   |
[INFO] [stdout] 101 | |         return token;
[INFO] [stdout]     | |         ------------- this is found to be of type `Box<Token>`
[INFO] [stdout] 102 | |       }
[INFO] [stdout] 103 | |       _ => eprint!("トークナイズできません"),
[INFO] [stdout]     | |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Box`, found `()`
[INFO] [stdout] 104 | |     }
[INFO] [stdout]     | |_____- `match` arms have incompatible types
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Box<Token>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] note: return type inferred to be `Box<Token>` here
[INFO] [stdout]    --> src/main.rs:95:16
[INFO] [stdout]     |
[INFO] [stdout] 95  |         return acc;
[INFO] [stdout]     |                ^^^
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:107:26
[INFO] [stdout]     |
[INFO] [stdout] 107 |   new_token(TK_EOF, cur, p);
[INFO] [stdout]     |                          ^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          expected struct `String`, found `&str`
[INFO] [stdout]     |                          help: try using a conversion method: `p.to_string()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:108:10
[INFO] [stdout]     |
[INFO] [stdout] 84  | fn tokenize(p: &str) -> Token {
[INFO] [stdout]     |                         ----- expected `Token` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 108 |   return head.next;
[INFO] [stdout]     |          ^^^^^^^^^ expected struct `Token`, found struct `Box`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Token`
[INFO] [stdout]                found struct `Box<Option<Token>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `c-compiler-with-rust`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "487d9e67d71c93dab6b09ff94191a9542007eee83b162d12f3b432bbc96901bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "487d9e67d71c93dab6b09ff94191a9542007eee83b162d12f3b432bbc96901bb", kill_on_drop: false }`
[INFO] [stdout] 487d9e67d71c93dab6b09ff94191a9542007eee83b162d12f3b432bbc96901bb
